package com.gayworld.controller.web.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.gayworld.controller.web.places.BaseController;
import com.gayworld.model.entity.qb.Session;
import com.gayworld.ws.user.QBUserService;

@Controller
public class UserController extends BaseController{
 
	@Autowired
	private QBUserService qbUser;

	@RequestMapping(value="/signup.do", method = RequestMethod.GET)
	public ModelAndView signup() {
		ModelAndView modelAndView = new ModelAndView("user_signup");
		
		modelAndView.addObject("message",message.getMessage("header.signup"));
		
		//qbUser.login();
		
		return modelAndView;
	}
	 
	@RequestMapping(value="/user/user_profile.do", method = RequestMethod.GET)
	public ModelAndView profile() {
		ModelAndView modelAndView = new ModelAndView("user_profile");
		modelAndView.addObject("message",message.getMessage("header.profile"));
		
		return modelAndView;
	}
	
	@RequestMapping(value={"/", "/login.do"}, method = RequestMethod.GET)
	public ModelAndView inicio() {
		ModelAndView modelAndView = new ModelAndView("login");
		modelAndView.addObject("message",message.getMessage("header.login"));
		
		return modelAndView;
	}
	
	 
 

	/**
	 * @param qbUser the qbUser to set
	 */
	public void setQbUser(QBUserService qbUser) {
		this.qbUser = qbUser;
	}
}
